//
//  ViewController.m
//  播放按钮和暂停按钮自动转换
//
//  Created by dllo on 16/8/19.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ViewController.h"
#import "PlayView.h"
@interface ViewController ()
@property (strong, nonatomic) IBOutlet PlayView *playView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
[self.playView play:^(UIButton *play) {
    NSLog(@"播放");
} pause:^(UIButton *pause) {
    NSLog(@"暂停");
}];
    [self.playView next:^(UIButton *nex) {
        NSLog(@"下一曲");
    } last:^(UIButton *last) {
        NSLog(@"上一曲");
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
